package com.ytrsoft.enums;

import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.v3.oas.annotations.media.Schema;

@Schema(description = "关系状态")
public enum RelationshipStatus {
    @Schema(description = "单身")
    SINGLE(),
    @Schema(description = "恋爱中")
    IN_RELATIONSHIP(),
    @Schema(description = "同居")
    LIVING_TOGETHER();

    @JsonCreator
    public static RelationshipStatus enumCreator(String name) {
        return RelationshipStatus.valueOf(name);
    }
}